//企业相关管理入口控制器js
import request from '@/utils/request'
function getUrl(url) { return '/api/admin/enterpriseDominant/' + url }

//获取分页数据
export function getInEnterpriseDominantPage(data) {
    return request({
        url: getUrl("getInEnterpriseDominantPage"),
        method: 'post',
        data
    })
}

//获取主体数据
export function getInEnterpriseDominantList(data) {
    return request({
        url: getUrl("getInEnterpriseDominantList"),
        method: 'post',
        data
    })
}

export function getInEnterpriseDataList(data) {
    return request({
        url: getUrl("getInEnterpriseDataList"),
        method: 'post',
        data
    })
}

export function getInEnterpriseYZList(data) {
    return request({
        url: getUrl("getInEnterpriseYZList"),
        method: 'post',
        data
    })
}

//添加主体信息
export function addInEnterpriseDominant(data) {
    return request({
        url: getUrl("addInEnterpriseDominant"),
        method: 'post',
        data
    })
}

//更新主体信息
export function updateInEnterpriseDominant(data) {
    return request({
        url: getUrl("updateInEnterpriseDominant"),
        method: 'post',
        data
    })
}

//更新主体维保状态
export function updateMaintenanceStatus(data) {
    return request({
        url: getUrl("updateMaintenanceStatus"),
        method: 'post',
        data
    })
}


export function deleteInEnterpriseDominant(data) {
    return request({
        url: getUrl("deleteInEnterpriseDominant"),
        method: 'post',
        data
    })
}


//获取主体信息数据 getInEnterpriseDominantVo
export function getInEnterpriseDominantVo(data) {
    return request({
        url: getUrl("getInEnterpriseDominantVo"),
        method: 'post',
        data
    })
}

//获取按类型分组的主体信息
export function getEnterpriseGroup(data) {
    return request({
        url: getUrl("getEnterpriseGroup"),
        method: 'post',
        data
    })
}

//获取按类型分组的主体信息
export function getEnterprisesByType(data) {
    return request({
        url: getUrl("getEnterprisesByType"),
        method: 'post',
        data
    })
}
